package cn.onlineclass.test;
import cn.onlineclass.controller.ORatationController;
import cn.onlineclass.dao.ORatationMapper;
import cn.onlineclass.entity.ORatation;
import cn.onlineclass.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;


public class test01 {
    public static void main(String[] args) {
        SqlSession s = MybatisUtil.get();
//        OMajorMapper mapper = s.getMapper(OMajorMapper.class);
////        OMajor oMajor = new OMajor(6,"aaaa",true,"aaaa",1);
////        int del = mapper.del(oMajor);
////        System.out.println(del+"**********");
//        long i = 1;
//        List<OMajor> search = mapper.search(1, 10, true,null );
//        System.out.println(search.toString());
        ORatationMapper mapper = s.getMapper(ORatationMapper.class);
//        ORatation o = new ORatation("aaaa","aaaa","aaaa",false);
//        int add = mapper.add(o);
//        System.out.println(add);
        List<ORatation> search = mapper.search(1, 10, true);
        System.out.println(search);
    }
}
